package com.test.mapper;

import com.test.pojo.Food;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FoodMapper {
    List<Food> getAllFoodList();

    int updateFood(Food food);
    int deleteFoodList(@Param("foodId") int foodId);
    int addFoodList(Food food);


    List<Food> serachFoodList(@Param("foodName") String foodName);

    Food getFoodByID(@Param("foodId") int foodId);
}
